
function goThePage(page,rows){
	var pages = page;
	var funcname = $("#funcname").val();
	
	var info = {
		page: pages,
		rows: rows
	};
	
	if(funcname.length > 0){
		eval('info.functionname="' + funcname + '"');
	}
	
	var str = '';
	var type = '';
	doPost("system/findAllPermission",info,function(data){
		
		if(data.success){
			var data = data.data;
			var r = data.rows;
			for(var i = 0; i < r.length; i++) {
				str += "<tr>" +
					'<td>' + r[i].id + '</td>' +
					'<td>' + r[i].name + '</td>' +
					"<td>" + r[i].style + "</td>" +
					"<td>" + r[i].sign + "</td>" +
					"<td>" + r[i].url + "</td>" +
					"<td>" + r[i].iconCls + "</td>" +
					"<td>" + r[i].parentId + "</td>" +
					"<td>" + r[i].state + "</td>" +
					"<td>" + r[i].priority + "</td>" +
					"</tr>";
			}
			$('#func_list').html(str);
			
			//处理分页
			syncPageStatus(page,data.pages,data.total);
			
		}
	});
}
